package com.csl.hotel.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.csl.hotel.dao.JwryzsdjDaoI;
import com.csl.hotel.entity.RyJwryzsdj;

@Service("jwryzsdjService")
public class JwryzsdjServiceImpl implements JwryzsdjServiceI {

	@Autowired
	private JwryzsdjDaoI jwryzsdjDao;
	
	public void setJwryzsdjDao(JwryzsdjDaoI jwryzsdjDao) {
		this.jwryzsdjDao = jwryzsdjDao;
	}
	
	@Override
	public List<RyJwryzsdj> findJwryzsdjs(String date) {
		List<RyJwryzsdj> zsdjxxList=jwryzsdjDao.selectJwryDjxxs(date);
		return zsdjxxList;
	}

	@Override
	@Transactional
	public int updateJwry4up(String rybh) {
		int result=jwryzsdjDao.updateById(rybh);
		return result;
	}

}
